package com.yc.bank.dao;

import com.yc.bank.bean.Oprecord;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class OprecordDao {

    @Resource
    JdbcTemplate jdbc;

    public void insert(String aid, double money){
        String sql = "insert into bank_oprecord values" +
                "(default,?,?,null,now(),null)";
        jdbc.update(sql, aid, money);
    }

}
